'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function GetRequiredService0(Of TService)( _ ByVal serviceProvider As IServiceProvider _ ) As TService
'Usage
Dim serviceProvider As IServiceProvider Dim value As TService value = IServiceProviderExtension.GetRequiredService0(Of TService)(serviceProvider)
[Extension()] [NotNull()] public static TService GetRequiredService0<TService>( IServiceProvider serviceProvider )
[Extension()] [NotNull()] public: static TService^ GetRequiredService0generic<typename TService> ( IServiceProvider^ serviceProvider )
Parameters
- serviceProvider
- The service provider.
Type Parameters
- TService
- The type of service object to get.
Return Value
A service object of type TService.